package Request;

import java.io.BufferedReader;
import java.io.IOException;

/**
 * 接收数据处理静态类
 */
public class Receive {

    /**
     * post请求非表单数据
     * @return 返回map
     */
    public static String Post_unForm(BufferedReader data){
        char[] buf = new char[1024];
        int len = 0;
        StringBuilder stringBuffer = new StringBuilder();
        while (true){
            try {
                if ((len = data.read(buf)) == -1) break;
            } catch (IOException e) {
                e.printStackTrace();
                break;
            }
            stringBuffer.append(buf, 0 , len);
        }
        return stringBuffer.toString();
    }


}
